// ----------------------------------
// RSDK Project: Sonic 1 Forever X Doki Doki Literature Club
// Script Description: Sidebar
// Script Author: Christian Whitehead/Simon Thomley
// Unpacked by Rubberduckycooly's script unpacker
// ----------------------------------

//-------Aliases-------//
private alias 1 : TYPE_SEGA
private alias 75 : SPACING_VALUE

private alias object.value0 : object.speedPercent
private alias object.value1 : object.circleY

// Function declarations


event ObjectMain
	object.yvel += 0x2000
	object.speedPercent += object.yvel
	temp0 = object.speedPercent
	temp0 >>= 16
	object.circleY += temp0
	object.speedPercent &= 0xFFFF
	object.ixpos += object.xvel
	object.xvel = object.speed

	object.alpha -= 3

	if object.alpha < 0
		object.type = 0
	end if

	if object.propertyValue == 1
		FlipSign(object.xvel)
	end if
end event


event ObjectDraw
	object.inkEffect = INK_ALPHA
	DrawSpriteScreenFX(0, FX_INK, object.ixpos, object.circleY)
end event


event ObjectStartup
	LoadSpriteSheet("DDLCMenu/Menu.gif")
	SpriteFrame(0, 0, 18, 18, 133, 121) // 0 - Sparkles
end event

event RSDKDraw
	DrawSprite(0)
end event

event RSDKLoad
	LoadSpriteSheet("Global/Display.gif")
	SpriteFrame(-16, -16, 32, 32, 1, 143)
end event
